<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
			<col style="width: 25%" />
			<col style="width: 25%" />
			<col style="width: 25%" />
			<col style="width: 25%" />
	<tr>
		<td colspan="4" class="t_bar2">项目基本情况</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td colspan="3"><input id="zh_title" name="proposal/zh_title"
			label="项目名称" type="text" 
			class="input_css required maxlength:100" style="width: 650px;"
			maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>接待发生时间：</td>
		<td colspan="3">
			<c:set var="treat_start_date"><x:out select="$xmlData/data/proposal/treat_start_date" /></c:set>
			<cpt:date id="treat_start_date" name="proposal/treat_start_date" value="${treat_start_date}" className=" required date" label="接待发生时间-->开始时间"></cpt:date>
			至
			<c:set var="treat_end_date"><x:out select="$xmlData/data/proposal/treat_end_date" /></c:set>
			<cpt:date id="treat_end_date" name="proposal/treat_end_date" value="${treat_end_date}" className=" required date" label="接待发生时间-->结束时间"></cpt:date> 		
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>经营许可证号：</td>
		<td colspan="3"><input id="operate_permit_no" name="proposal/operate_permit_no"
			label="经营许可证号" type="text" 
			class="input_css required maxlength:100" style="width: 650px;"
			maxlength="100"	value="<x:out select="$xmlData/data/proposal/operate_permit_no" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>财务负责人：</td>
		<td><input id="fund_person" name="proposal/fund_person"
			label="财务负责人" type="text" 
			class="input_css required maxlength:100"
			maxlength="100"	value="<x:out select="$xmlData/data/proposal/fund_person" />" /></td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input id="fund_person_tel" name="proposal/fund_person_tel"
			label="财务负责人-->联系电话" type="text" 
			class="input_css required maxlength:100"
			maxlength="50"	value="<x:out select="$xmlData/data/proposal/fund_person_tel" />" /></td>
	</tr>
	<%-- <tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input id="contact_psn_cname"  onchange="setContractInfo();"
			label="项目联系人" type="text" name="proposal/contact_psn_cname"
			class="input_css required maxlength:100"
			maxlength="100"	value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" /></td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input id="contact_psn_tel" onchange="setContractInfo();"
			label="项目联系人-->联系电话" type="text" name="proposal/contact_psn_tel"
			class="input_css required maxlength:100"
			maxlength="50"	value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" /></td>
	</tr> --%>
	<tr>
		<%-- <td align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td><input id="contact_psn_email" onchange="setContractInfo();"
			label="电子邮箱" type="text" name="proposal/contact_psn_email"
			class="input_css required maxlength:100"
			maxlength="100"	value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" /></td> --%>
		<td align="right"><span class="color_red">*</span>项目联系人传真：</td>
		<td colspan="3"><input id="fax_no" name="proposal/fax_no"
			label="项目联系人传真" type="text" 
			class="input_css required maxlength:100"
			maxlength="50"	value="<x:out select="$xmlData/data/proposal/fax_no" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>接待人数（人）：</td>
		<td><input id="treat_psn_total" name="proposal/treat_psn_total"
			label="接待人数" type="text" 
			class="input_css required" style="text-align:right;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/treat_psn_total" />" /></td>
		<td align="right"><span class="color_red">*</span>接待过夜人天数（人天）：</td>
		<td><input id="treat_psn_day" name="proposal/treat_psn_day"
			label="接待过夜人天数 " type="text" 
			class="input_css required" style="text-align:right;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/treat_psn_day" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>组织包机情况：</td>
		<td><label> <input type="radio" class="do " id="airplane_01" onchange="setAirplane('airplane_01');" style="vertical-align: middle;" name="airplane" label="有" value="01" /><span style="vertical-align: middle;">有 </span></label> 
		<label> <input type="radio" class="do " id="airplane_02" onchange="setAirplane('airplane_02');" style="vertical-align: middle;" name="airplane" label="无" value="02" /><span style="vertical-align: middle;">无</span></label> 
		<input type="hidden" name="proposal/airplane_value" id="airplane_value" class="required" value="<x:out select="$xmlData/data/proposal/airplane_value" />" label="组织包机情况" /> 
		<input type="hidden" name="proposal/airplane_name" id="airplane_name" value="<x:out select="$xmlData/data/proposal/airplane_name" />" label="组织包机情况" /></td>
		</td>
		<td align="right"><span id="label_airplane_total"><span id="span_airplane_total" class="color_red">*</span>包机架数（架）：</span></td>
		<td><input id="airplane_total" name="proposal/airplane_total"
			label="包机架数" type="text" 
			class="input_css required" style="text-align:right;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/airplane_total" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>门票成本（万元）：</td>
		<td colspan="3"><input id="ticket_cost" name="proposal/ticket_cost"
			label="门票成本" type="text" style="text-align:right;"
			class="input_css required " onfocus="InitInput.setNumber(this,7,4,2)"
			value="<x:out select="$xmlData/data/proposal/ticket_cost" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>接待主要景区：<br/>（限5个，以；号隔开）</td>
		<td colspan="3"><input id="treat_main_area" name="proposal/treat_main_area"
			label="接待主要景区" type="text"  
			class="input_css required "  style="width: 650px;"
			maxlength="100" value="<x:out select="$xmlData/data/proposal/treat_main_area" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>接待游客国籍：<br/>（限10个，以；号隔开）</td>
		<td colspan="3"><input id="treat_country" name="proposal/treat_country"
			label="接待游客国籍" type="text"  
			class="input_css required "  style="width: 650px;"
			maxlength="100" value="<x:out select="$xmlData/data/proposal/treat_country" />" /></td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	
</table>

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo4" cellspacing="1">
			<col style="width: 25%" />
			<col style="width: 25%" />
			<col style="width: 25%" />
			<col style="width: 25%" />
	<tr>
		<td colspan="4" class="t_bar2">申请项目资金情况</td>

	</tr>
	<tr>
		<td align="right">项目类别：</td>
		<td><x:out select="$xmlData/data/proposal/grant_name" /></td>
		<td align="right">支持方式：</td>
		<td colspan="1"><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>

	</tr>
	<tr>
	
		
		<td align="right"><span class="color_red">*</span>申请金额（万元）：</td>
		<td  >
			<input id="source_apply" name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="申请金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/>
		</td>
		<td  align="right">资金级次：</td>
		<td colspan="1">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>

	<tr>
		<td align="right" nowrap>归口管理部门：</td>
		<td><span name="proposal/org_name">无锡市旅游局</span></td>
		<td align="right">管理类别：</td>
		<td colspan="1"><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /></span></td>

	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="3">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
		<td align="right">功能分类：</td>
		<td colspan="3"><span name="proposal/grant_function"><x:out
					select="$xmlData/data/proposal/grant_function" /></span></td>

	</tr>
	<tr>
		<td align="right" rowspan="3"><span class="color_red">*</span>申请资金用途：</td>
		<td><label><input type="checkbox" class="do " id="fund_use_01" style="vertical-align: middle;" onchange="setFundUse('fund_use_01');" name="fund_use" label="旅游宣传促销 " value="01" /><span style="vertical-align: middle;">旅游宣传促销 </span></label></td>
		<td align="right"><span id="label_funduse_amt_1"><span id="span_funduse_amt_1" class="color_red">*</span>金额（万元）：</span></td>
		<td><input id="funduse_amt_1" name="proposal/funduse_amt_1" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="旅游宣传促销 -->金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/funduse_amt_1" />"/>
		</td>
	</tr>
	<tr>
		<td><label><input type="checkbox" class="do " id="fund_use_02" style="vertical-align: middle;" onchange="setFundUse('fund_use_02');" name="fund_use" label="旅行社奖励制度完善 " value="02" /><span style="vertical-align: middle;">旅行社奖励制度完善 </span></label></td>
		<td align="right"><span id="label_funduse_amt_2"><span id="span_funduse_amt_2" class="color_red">*</span>金额（万元）：</span></td>
		<td><input id="funduse_amt_2" name="proposal/funduse_amt_2" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="旅行社奖励制度完善-->金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/funduse_amt_2" />"/>
		</td>
	</tr>
	<tr>
		<td><label><input type="checkbox" class="do " id="fund_use_03" style="vertical-align: middle;" onchange="setFundUse('fund_use_03');" name="fund_use" label="旅游人才教育培养 " value="03" /><span style="vertical-align: middle;">旅游人才教育培养 </span></label></td>
		<td align="right"><span id="label_funduse_amt_3"><span id="span_funduse_amt_3" class="color_red">*</span>金额（万元）：</span></td>
		<td><input id="funduse_amt_3" name="proposal/funduse_amt_3" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="旅游人才教育培养-->金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/funduse_amt_3" />"/>
		<input type="hidden" name="proposal/fund_use_value" id="fund_use_value" class="required" value="<x:out select="$xmlData/data/proposal/fund_use_value" />" label="申请资金用途" /> 
		<input type="hidden" name="proposal/fund_use_name" id="fund_use_name" value="<x:out select="$xmlData/data/proposal/fund_use_name" />" label="申请资金用途" />
		</td>
	</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td class="t_bar2">申请资助依据条款</td>

	</tr>
	<tr>
		<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
			name="proposal/policy_foundation"><x:out
					select="$xmlData/data/proposal/policy_foundation" /></span>
		</td>
	</tr>
</table>
<br />





<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="basicInfo5">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>

	</tr>
	<%-- <tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input id="contact_psn_cname2" label="项目联系人"
			type="text" class="input_css required" maxlength="100" 
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td align="right">联系电话：</td>
		<td><input id="contact_psn_tel2" label="联系电话"
			type="text" class="input_css required" maxlength="50" 
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系手机：</td>
		<td><input name="proposal/contact_psn_mobile" label="人员信息-->联系手机"
			type="text" maxlength="11"
			class="input_css required mobile" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
		<td align="right">电子邮箱：</td>
		<td><input id="contact_psn_email2" label="电子邮箱"
			 class="input_css required" maxlength="100" 
			value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" />
		</td>
	</tr> --%>
	<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
		
		</tr>


</table>

<script type="text/javascript">
$(document).ready(function(){
	setFundUse("fund_use_01");
	setFundUse("fund_use_02");
	setFundUse("fund_use_03");
	
	setAirplane("airplane_01");
	setAirplane("airplane_02");
});




function setFundUse(boxid){
	var box = $("#"+boxid);
	var bval = box.val();
	var input = $("#funduse_amt_1");
	var span = $("#span_funduse_amt_1");
	var label = $("#label_funduse_amt_1");
	if(bval=="01"){
		input = $("#funduse_amt_1");
		span = $("#span_funduse_amt_1");
		label = $("#label_funduse_amt_1");
	}else if(bval=="02"){
		input = $("#funduse_amt_2");
		span = $("#span_funduse_amt_2");
		label = $("#label_funduse_amt_2");
	}else if(bval=="03"){
		input = $("#funduse_amt_3");
		span = $("#span_funduse_amt_3");
		label = $("#label_funduse_amt_3");
	}
	if(box.attr("checked")){
		input.addClass("required");
		input.removeClass("gray");
		input.attr("disabled",false);
		span.html("*");
		label.css("display","");
		input.css("display","");
	}else{
		input.removeClass("required");
		input.addClass("gray");
		input.attr("disabled",true);
		input.val("");
		span.html("");
		label.css("display","none");
		input.css("display","none");
	}
}

function setAirplane(id){
	var radio = $("#"+id);
	var val = radio.val();
	if(val=='01'){
		if(radio.attr("checked")){
			$("#span_airplane_total").html("*");
			$("#airplane_total").addClass("required");
			$("#label_airplane_total").css("display","");
			$("#airplane_total").css("display","");
		}else{
			$("#span_airplane_total").html("");
			$("#airplane_total").removeClass("required");
			$("#airplane_total").val("");
			$("#label_airplane_total").css("display","none");
			$("#airplane_total").css("display","none");
		}
	}else if(val=='02'){
		if(radio.attr("checked")){
			$("#span_airplane_total").html("");
			$("#airplane_total").removeClass("required");
			$("#airplane_total").val("");
			$("#label_airplane_total").css("display","none");
			$("#airplane_total").css("display","none");
		}
	}
}

/* function setContractInfo(){
	$("#contact_psn_cname2").val($("#contact_psn_cname").val());
	$("#contact_psn_tel2").val($("#contact_psn_tel").val());
	$("#contact_psn_email2").val($("#contact_psn_email").val());
} */
</script>


